package com.quan.mall.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import javax.validation.constraints.NotNull;
import com.quan.commons.core.bean.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 商城-广告列表
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-04-22 23:50:31
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("mall_advertise_item")
public class MallAdvertiseItem extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID
	 */
    @TableId
    private Long id;

	/**
	 * 广告分类ID
	 */
    private Long adId;

	/**
	 * 广告图片
	 */
    private String pic;

	/**
	 * 上下线状态：0->禁用；1->启用
	 */
    private Integer status;

	/**
	 * 链接地址
	 */
    private String url;

	/**
	 * 备注
	 */
    private String note;

	/**
	 * 排序
	 */
    private Integer sort;

	/**
	 * 创建时间
	 */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime ctime;


}
